Xbasic

LINE Function

Syntax

V LINE(N XPos1,N YPos1,N XPos2,N YPos2)

Arguments

XPos1

The horizontal coordinate of the starting point of the line.

YPos1

The vertical coordinate of the starting point of the line.

XPos2

The horizontal coordinate of the starting point of the line.

YPos2

The vertical coordinate of the starting point of the line.

Description

Draw a line.

Discussion

LINE() draws a line from Starting_Point to Ending_Point.

images/GR_line().gif

Example

put description here

ui_bitmap_create("test",4,4)
ui_bitmap_draw("test",<<%code%
inner_Rect(0,0,4,4)
line(2,1,3,2)
line(3,2,1,3)
line(1,3,2,1)
%code%)
ui_dlg_box("","{image=test}")

Limitations

Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().

See Also